<template>
  <div>
    <el-table
      :data="tableData"
      style="width: 100%"
      border
      fit
      stripe
      height="700"
      highlight-current-row
      element-loading-text="数据加载中"
    >
      <el-table-column prop="date" label="序号" width="70" align="center" fixed>
        <template slot-scope="scope">
          {{ (page - 1) * limit + scope.$index + 1 }}
        </template>
      </el-table-column>
      <el-table-column prop="project_name" label="区块"  align="center" />

      <el-table-column prop="avg_dosing_cycle" label="平均加药周期（天）" sortable align="center" />

      <el-table-column prop="avg_hotwash_cycle" label="平均热洗周期（天）" sortable align="center" />

      <el-table-column prop="avg_clean_cycle" label="平均清防蜡周期（天）" sortable align="center" />
    </el-table>
  </div>

</template>

<script>
export default {
  data: function() {
    return {
      searchData: {},
      page: 1,
      limit: 10,
      total: 0,
      tableData: [

      ],
      type:2,
      statisticsQuery: [
        {

        }
      ]
    }
  },
  created() {
    this.getListPage()
  },
  methods: {
    getListPage() {
      this.$http.post('/summaryStatistics/cycle',{
        type:this.type
      }).then(response=>{
        this.tableData=response.data.data
      }).catch(err => {
        this.$message.error(err)
      })
    },

    resetData() {
    }
  }
}
</script>

<style scoped>

</style>
